<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
 
<jsp:include page="../layout/head.jsp"></jsp:include> 
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/student/demo.js" ></script>  
<body> 
	<h2>Student Information</h2>
	<form:form method="POST" action="${pageContext.request.contextPath}/student/addStudent">
		<table>
			<tr>
				<td><form:label path="name">Name</form:label></td>
				<td><form:input path="name" /></td>
			</tr>
			<tr>
				<td><form:label path="age">Age</form:label></td>
				<td><form:input path="age" /></td>
			</tr>
			<tr>
				<td><form:label path="id">id</form:label></td>
				<td><form:input path="id" /><input type="hidden" id="hide"
					name="hide" value="111111111" /></td>

			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="Submit" />
			</tr>
		</table>
	</form:form>
	<form:form action="${pageContext.request.contextPath}/student/delStudent/1" method="delete">
		<input type="submit" value="发送Delete请求" />
	</form:form>
	<a href="${pageContext.request.contextPath}/student/1.json">发送json请求</a>
</body>
</html>